import Vue from 'vue'

export default {
	loadEvaluation: function(callBack,params){
			Vue.axios.get(`http://localhost:8080/evaluation/show`,params).then(r=>{
					callBack(r.data);
			});
	},
	countEvaluation: function(callBack,params){
		Vue.axios.get(`http://localhost:8080/evaluation/count`,params).then(r=>{
			callBack(r.data);
		});
	},
	addshoppingcartdetail:function (config,callback){
	  Vue.axios.post(Vue.prototype.$g.addshoppingcartdetail,config).then(r=>{
	    callback(r);
	  });
	},
	getfooddetail:function (config,callback){
		//console.log(config);
		
	  Vue.axios.post(`http://localhost:8080/food/detail`,config).then(r=>{
		//console.log(r);
	    callback(r);
	  });
	},
	
}